package com.example.excel.base;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.MutableLiveData;

public class BaseViewModel extends AndroidViewModel {

    private MutableLiveData<Boolean> mDialog;
    private MutableLiveData<String> mTxtDialog;
    private MutableLiveData<Boolean> mJumpLogin;

    public BaseViewModel(@NonNull Application application) {
        super(application);
    }

    public MutableLiveData<Boolean> getDialog() {
        if (mDialog == null) {
            mDialog = new MutableLiveData<>();
        }
        return mDialog;
    }

    public MutableLiveData<String> getTxtDialog() {
        if (mTxtDialog == null) {
            mTxtDialog = new MutableLiveData<>();
        }
        return mTxtDialog;
    }

    public MutableLiveData<Boolean> getJumpLogin() {
        if (mJumpLogin == null) {
            mJumpLogin = new MutableLiveData<>();
        }
        return mJumpLogin;
    }

}
